package com.dzt.btserial;

import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;

import com.adayo.btsppsdk.constant.HudConnectStatus;

/**
 * Created by M02323 on 2017/8/4.
 */

public interface Contract {

	interface Presenter{
		void onConnect(BluetoothDevice device);
		void onDisconnect();
		boolean isDiscovering();
		void onStartDiscovery();
		void onCancelDiscovery();
		void onPairDevice(BluetoothDevice device);
		BluetoothAdapter getBluetoothAdapter();
		void onDestroy();
	}

	interface View{
		void onFoundNewDevice(BluetoothDevice device);
		void onSearchFinish();
		void onBonded(BluetoothDevice device);
		void onSwitchStateChange(int status);
		void onSppDisconnected();
		void onBTStatusChange(HudConnectStatus status);
	}
}
